from time import sleep
from unittest.case import TestCase
from selenium import webdriver
from auto.po.Login import Login

'''
这是批量注释
测试登录
ctrl+alt+l 格式化代码
ctrl+/ 注释你要注释的部分，先选中即可
'''


class TestLogin(TestCase):
    def setUp(self) -> None:
        self.driver = webdriver.Chrome('../drivers/chromedriver.exe')

    def test_login(self):
        driver = self.driver
        login = Login(driver)
        login.open()  # 打开浏览器
        login.input_username()
        login.input_password()
        login.login_button()
        sleep(5)

    def logout(self):
        pass
